<?php
/**
 * Created by PhpStorm.
 * User: Anthony Qu
 * Date: 2017/1/29
 * Time: 上午9:38
 */
return [
    'default_img'     => '/assets/backend/img/default.jpg', // 未上传时默认显示的图片
    'dir_structure'        => date('Y/m/d'), // 存储的目录结构
    'maxsize'         => '102400', // kb为单位
    // 'img_mimes'       => 'gif,jpeg,jpe,jpg,bmp,png',  // 运行上传的类型
    'markdown' => 'editormd-image-file', // markdown的图片上传的name
    // 绝对目录
    'path' => [
        'common' => public_path('uploads/common/'), // 公共图片上传位置
        'article'=> public_path('uploads/article/'), // 文章图片上传位置
        'goods'  => public_path('uploads/goods/'), // 产品图片上传位置
        'solution'  => public_path('uploads/solution/'), // 解决方案上传位置
        'video' => public_path('uploads/video/'), //视频上传路径
        'banner' => public_path('uploads/banner/'),//轮播图上传路径
        'pdf' => public_path('uploads/pdf/'),//pdf上传路径
        'id_card'=> storage_path('uploads/card/')  // 身份证图片上传位置
    ],
    // 基础目录
    'dir' => [
        'base'    => 'uploads/',
        'common'  => 'uploads/common/',
        'article' => 'uploads/article/',
        'goods'   => 'uploads/goods/',
        'solution'   => 'uploads/solution/',
        'id_card' => 'uploads/card/',
        'video'   => 'uploads/video/',
        'pdf'     => 'uploads/pdf/',
        'banner'  => 'uploads/banner/'
    ],
    'prefix' => [
        'thumb'   => 'hxbthumb_',
        'link'    => 'ln_',
        'banner'  => 'bn_',
        'article' => 'ar_',
        'article_banner' => 'arb_',
        'goods'   => 'gd_',
        'solution'   => 'so_',
        'card'    => 'cd_',
        'pdf'    => 'pdf_',
        'video'   => 'vd_',
    ],
    'resize' => [
        'link' => ['width' => 100, 'height' => 50],
    ]
];